<div class="theme-popover  login-popover">
    <div class="theme-poptit">
         <a href="javascript:void(0)" title="关闭" class="close">×</a>
         <p class="theme-title">登录/注册</p>
    </div>
    <div class="theme-popbod dform">
          <p><span class="fail"><font color=red id='login_msg'></font></span></p>
          <form class="theme-signin" name="tiqu" id="tiqu" method="post">
                              <div class="form-group has-success">
                                    <h5>用户名：</h5>
                                    <input name="username" class="form-control" placeholder="用户名" type="text" >
                                    <h5>密码：</h5>
                                    <input name="password" class="form-control" placeholder="**********" type="password"><br> 
                                   <button class="searchsubmit "  onclick="sub()">登 录</button>
                                   </div> 
                        </form>      
          
    </div>
    <div class="theme-right">
       <h3 align="center"> 公告</h3>
       <p>由于注册功能存在若干尚未修复的bug，故尚未开放注册！请等待……</p>
       <a href="__MODULE__/reg/">立即注册</a>
    </div>
</div>
<div class="theme-popover-mask" style="display: none;"></div>
<script type="text/javascript">
function show_login_box(){$('.theme-popover-mask').fadeIn(100);$('.login-popover').slideDown(200);}
function close_login_box(){$('.theme-popover-mask').fadeOut(100);$('.login-popover').slideUp(200);}
$(document).ready(function() {  
  
     $('.theme-login').click(function(){
    	show_login_box ();
    });
    $('.theme-poptit .close').click(function(){
    	close_login_box ();
    });
	
	}	);
	
	function sub(){
	$.ajax({
				cache: true,
				type: "POST",
				url:"__APP__/admin/login/going/",
				data:$('#tiqu').serialize(),// 你的formid
				async: false,
				dataType: 'json',
			  error: function(request) {
			 alert("Connection error !");
			    },
			    success: function(data) {
           var textId = document.getElementById("login_msg");   
            textId.innerHTML=data['msg'];
			    }
         
			});
	
	}

	</script>
